package com.hanggold.springboot;


import com.hanggold.springboot.bean.UserBean;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestMangApplication {

    public static void main(String[] args) {


        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(TestMangApplication.class);

        context.scan("com.hanggold");

        UserBean userBean = context.getBean(UserBean.class);

//        DefaultListableBeanFactory beanFactory = new DefaultListableBeanFactory();
//
//        beanFactory.registerBeanDefinition("",null);
//
        userBean.say("中国");

    }
}
